﻿<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:converters="clr-namespace:SQLDeploymentBuilder.UI.Converters"
             xmlns:System="clr-namespace:System;assembly=mscorlib" x:Class="SQLDeploymentBuilder.UI.Controls.Connections.Editors.SSISConnectionEditor" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <converters:StringToSSISStorage x:Key="SSISStorageLocation"/>
    </UserControl.Resources>
    <Grid Margin="4">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <TextBlock Grid.Row="0" Margin="4"
			Text="Connection Name:"/>
        <TextBox Grid.Row="1" Margin="4"
			Text="{Binding Name, NotifyOnTargetUpdated=True, NotifyOnSourceUpdated=True}"/>

        <TextBlock Grid.Row="2" Margin="4"
			Text="SQL Server:"/>
        <TextBox Grid.Row="3" Margin="4"
			Text="{Binding SQLServer, NotifyOnTargetUpdated=True, NotifyOnSourceUpdated=True}"/>

        <TextBlock Grid.Row="4" Margin="4"
			Text="Destination Location:"/>
        <ComboBox Grid.Row="5" Margin="4"
                  SelectedValue="{Binding Path=SSISStorage, Converter=SSISStorageLocation}">
            <System:String>File System</System:String>
            <System:String>SQL Server(msdb)</System:String>
            
        </ComboBox>
    </Grid>
</UserControl>
